package com.hzdl.controller;

import com.hzdl.service.AccountService;
import com.hzdl.service.impl.AccountServiceImpl;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Controller;

@Controller
public class AccountController {

    @Test
    public void call() {
    ApplicationContext applicationContext = new ClassPathXmlApplicationContext("bean.xml");
    AccountService accountService = applicationContext.getBean("accountService", AccountServiceImpl.class);

        accountService.transfer(1,2,300.0);

//        accountService.save();
    }






}
